'Declaration
Public Overloads Sub SendEmail( _ ByVal sessionMatchPredicate As Predicate(Of SessionSummary), _ ByVal markAsRead As Boolean, _ ByVal emailSubject As String, _ ByVal fromAddress As String, _ ByVal destinationAddress As String, _ ByVal emailServer As String, _ ByVal serverPort As Integer, _ ByVal useSsl As Boolean, _ ByVal emailServerUser As String, _ ByVal emailServerPassword As String _ )
public void SendEmail( Predicate<SessionSummary> sessionMatchPredicate, bool markAsRead, string emailSubject, string fromAddress, string destinationAddress, string emailServer, int serverPort, bool useSsl, string emailServerUser, string emailServerPassword )
Parameters
- sessionMatchPredicate
- A delegate to evaluate sessions and determine which ones to send.
- markAsRead
- True to have every included session marked as read upon successful completion.
- emailSubject
- Optional. A subject line for the email. If left empty a subject line will be generated.
- fromAddress
- Optional. The email address the package will appear to come from. If empty the destination address will be used.
- destinationAddress
- Optional. The email address to send the package to. If empty the application configuration value will be used.
- emailServer
- The full DNS name of the SMTP server to use to relay the mail message.
- serverPort
- Optional. The TCP/IP Port number to connect to the server on. Use 0 for the default configured port.
- useSsl
- True to encrypt the server communication with Secure Sockets Layer.
- emailServerUser
- Optional. A user name to use instead of the current windows user credentials to communicate with the email server.
- emailServerPassword
- Optional. A password to use for the user name for credentials to communicate with the email server.